import request from '@/utils/request'

// 查询人员模型示例列表
export function listPersonDemo(query) {
  return request({
    url: '/model/persondemo/list',
    method: 'get',
    params: query
  })
}

// 查询人员模型示例详细
export function getPersonDemo(id) {
  return request({
    url: '/model/persondemo/' + id,
    method: 'get'
  })
}

// 新增人员模型示例
export function addPersonDemo(data) {
  return request({
    url: '/model/persondemo',
    method: 'post',
    data: data
  })
}

// 修改人员模型示例
export function updatePersonDemo(data) {
  return request({
    url: '/model/persondemo',
    method: 'put',
    data: data
  })
}

// 删除人员模型示例
export function delPersonDemo(id) {
  return request({
    url: '/model/persondemo/' + id,
    method: 'delete'
  })
}
